﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WI.CandidateManager.Business.Objects;
using WI.CandidateManager.Common.Data.Entities;

namespace CandidateManager.Areas.Coach.Controllers
{
    /// <summary>
    /// Controller working with coach's home page.
    /// </summary>
    public class HomeController : CandidateManager.Controllers.AutorizeBaseController
    {
        /// <summary>
        /// Display home page of Coach.
        /// </summary>
        /// <returns>Home page of Coach.</returns>
        [Authorize]
        public ActionResult Index()
        {
            CoachBO coachBO = new CoachBO();

            return View(coachBO.GetGroups());
        }
    }
}
